package org.example;

import java.io.*;
import java.util.HashMap;
import java.util.Map;

//2.3	修改个人资料(A03)
public class PostDemoA03 {

    public static void main(String[] args) {
        // 构建嵌套JSON结构
        Map<String, Object> data = new HashMap<>();
        data.put("id", "A03");
        data.put("empid", "8888");
        data.put("empname", "黄飞鸿女儿");
        data.put("deptid", "02");
        data.put("sex", "1");
        data.put("mobile", "13566663333");

        try {
// {"data":{"empname":"黄飞鸿女儿","empid":"8888","sex":"1","deptid":"02","mobile":"13566663333","id":"A03"},"openid":"000001","timestamp":"20250427180207"}
            String response = sendJsonPostRequest.sendJsonPostRequest(data);
            System.out.println("响应内容：\n" + response);
// {"errcode":"0","msg":"成功","data":[{"ErrCode":"0","ErrStr":""}]}
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}



